package com.service;

import java.util.List;

import com.model.manyToMany.Student;
import com.model.manyToMany.Teacher;
import com.model.manyToOne.Author;
import com.model.manyToOne.Book;
import com.model.oneToOne.Login;
import com.model.oneToOne.User;

public interface FacadeService {

    public Author findAuthorById(Integer id);

    public void saveAuthor(Author author);

    public Book findBookById(Integer id);

    public void saveBook(Book book);

    public void deleteAuthor(Integer id);
    
    public void deleteBook(Integer id);

    public Teacher findTeacherById(Integer id);

    public void saveTeacher(Teacher teacher);
    
    public Student findStudentById(Integer id);

    public void saveStudent(Student student);

    public void deleteTeacher(Integer id);

    public void deleteTeacher2(Integer id);

    public void deleteStudent(Integer id);

    public void deleteStudent2(Integer id);

    public List<User> findUserByDate(String beginDate, String endDate);
    
    public void saveUser(User user);

    public void saveLogin(Login login);

    public void deleteUser(Integer id);

    public void deleteLogin(Integer id);

}
